package com.dk.mapper;

import com.dk.pojo.ChatRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ChatRecordMapper {

    int querySessionContain(@Param("sourceId")String sourceId, @Param("destinationId")String destinationId);
    List<ChatRecord> queryBothChatRecord(@Param("sourceId")String sourceId, @Param("destinationId")String destinationId);
    List<ChatRecord> queryOfflineChatRecord(@Param("sourceId")String sourceId);
    void saveChatRecord(@Param("chatRecord")ChatRecord chatRecord);
    void deleteChatRecord(@Param("sourceId")String sourceId,@Param("destinationId")String destinationId);
    void updateOfflineChatRecord(@Param("sourceId")String sourceId);
    int queryChatRecordSendState(@Param("sourceId")String sourceId);
    void updateDeleteState(@Param("sourceId")String sourceId,@Param("destinationId")String destinationId,@Param("deleteState")int deleteState);
    int queryChatRecordDeleteState(@Param("sourceId")String sourceId, @Param("destinationId")String destinationId);
    List<String> queryChatPeople(@Param("sourceId")String sourceId);
}
